package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Classname MemberOrderFeignService
 * @Description TODO
 * @Date 2021/10/14 10:15
 * @Author Anonymous
 */
@SuppressWarnings("all")
@FeignClient("gulimall-member")
public interface MemberOrderFeignService {

    /**
     * 获取某个会员的地址列表
     *
     * @param memberId
     * @return
     */
    @RequestMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);
}
